package com.pkk.penguin.frame.know.boot.view.view.hbsl;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @description: 华北水利控制跳转视图
 * @author: peikunkun
 * @create: 2020-05-12 16:18
 **/
@Slf4j
@Controller
@RequestMapping("vhbsl")
public class HbslAppletViews {

  @Value("${com.pkk.config.zhiyi.socket.url}")
  private String socketUrl;


  /**
   * @Description: 主要功能跳转
   * @Param: map
   * @return: java.lang.String
   * @Author: peikunkun
   * @Date: 2020/5/12 0012 下午 2:11
   */
  @RequestMapping(value = "index")
  public String index(ModelMap map) {
    map.addAttribute("name", "华北水利水电大学");
    return "index";
  }


  /**
   * @Description: 跳转到hbslsocket
   * @Param: map
   * @return: java.lang.String
   * @Author: peikunkun
   * @Date: 2020/5/13 0013 上午 10:46
   */
  @RequestMapping(value = "hbslsocket")
  public String hbslsocket(ModelMap map) {
    map.addAttribute("socketUrl", socketUrl);
    return "hbsl/hbslsocket";
  }
}
